package visualswing;

import java.io.Serializable;



/**
 * 
 * Alignment
 * 
 * @version 1.0.0, 2008-7-3
 * @author William Chen
 */
public abstract class Alignment implements Serializable, Cloneable {
	private static final long serialVersionUID = 1L;
	public static final int PREFERRED = -1;
	private Spring spring;

	public Alignment(visualswing.Spring spring2) {
		this.spring = spring2;
	}

	public Alignment(int min, int pref) {
		this.spring = new Spring(min, pref);
	}

	public Spring getSpring() {
		return spring;
	}

	public void setSpring(Spring spring) {
		this.spring = spring;
	}

	@Override
	public abstract Object clone();
}
